workspace(name = "examples_java")

# The local_repository() rule is used below because the workspaces referenced
# are all located within the Tink git repository.
#
# To replicate this setup in a workspace located in a separate repository, you
# can:
#
# 1. Load the http_archive() rule by using:
#
# load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#
# 2. Use the equivalent, commented-out http_archive() rules below as a starting
#    point.
#
# See the Tink Java HOW-TO for more details:
#   https://github.com/google/tink/blob/master/docs/JAVA-HOWTO.md

local_repository(
    name = "tink_base",
    path = "../..",
)
# http_archive(
#     name = "tink_base",
#     urls = ["https://github.com/google/tink/archive/master.zip"],
#     strip_prefix = "tink-master/",
# )

local_repository(
    name = "tink_java",
    path = "../../java_src",
)
# http_archive(
#     name = "tink_java",
#     urls = ["https://github.com/google/tink/archive/master.zip"],
#     strip_prefix = "tink-master/java_src",
# )


# Load Tink dependencies.

load("@tink_base//:tink_base_deps.bzl", "tink_base_deps")
tink_base_deps()

load("@tink_base//:tink_base_deps_init.bzl", "tink_base_deps_init")
tink_base_deps_init()

load("@tink_java//:tink_java_deps.bzl", "tink_java_deps")
tink_java_deps()

load("@tink_java//:tink_java_deps_init.bzl", "tink_java_deps_init")
tink_java_deps_init()

load("@examples_java//:examples_java_deps_init.bzl", "examples_java_deps_init")
examples_java_deps_init()
